#include <stdio.h>
void Print(int line){
	int i = 0;
	int j = 0;
	for(i = 0;i < line;i++){
		for(j = 0;j < line;j++){
			if(i != j && i + j != line - 1)
				printf(" ");
			else
				printf("*");
		}
		printf("\n");
	}
}
int main(){
    int line = 0;
    while(scanf("%d",&line) != EOF){
         Print(line);  
    }
    return 0;
}

